<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>09-内边距小案例</title>
  <style>
    .nav {
      height: 41px;
      border-top: 3px solid #ff8500;
      border-bottom: 1px solid #bcbec2;
      background-color: #fcfcfc;
    }

    .nav a {
      display: inline-block;
      height: 41px;
      line-height: 41px;
      font-size: 14px;
      color: #4c4c4c;
      text-decoration: none;
      /* 上下内边距0像素 左右内边距20像素 */
      padding: 0 20px;
    }

    .nav a:hover {
      background-color: #cfcccc;
      color: #ff8500;
    }
  </style>

</head>

<body>
  <div class="nav">
    <a href="#">设为首页</a>
    <a href="#">手机新浪网</a>
    <a href="#">移动客户端</a>
    <a href="#">博客</a>
    <a href="#">微博</a>
    <a href="#">关注我</a>
  </div>

</body>

</html>